package main

import (
	"fmt"
	"github.com/gin-gonic/gin"
	"homeProject/web/controller"
)

//添加gin框架开发3步骤
func main() {
	//初始化路由
	router := gin.Default()
	//路由匹配
	router.Static("/home", "view")

	router.GET("/api/v1.0/session", controller.GetSession)

	//启动运行
	router.Run(":8080")
	fmt.Println("项目启动了。。。")

}
